package com.itheima.tanhua.controller;

import com.itheima.tanhua.service.ManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/manage")
public class ManageController {

    @Autowired
    private ManageService manageService;

    @RequestMapping("/messages/{id}")
    public ResponseEntity getMessageById(@PathVariable("id") Long messageId) {
        manageService.getMessageById(messageId);
        return ResponseEntity.ok(null);
    }
}
